import bsinRequest from '../utils/bsinRequest';
let workflowAdminPath = process.env.contextPath_workflowAdmin;

// 获取历史流程实例列表
export const getHistoryProcessInst = (params: object) => {
  return bsinRequest(workflowAdminPath + '/historyProcessInst/getHistoryProcessInst', {
    serviceName: 'BsinAdminHistoryProcessInstService',
    methodName: 'getHistoryProcessInst',
    bizParams: {
      ...params,
    },
  });
};

// 获取历史流程实例列表
export const getHistoryActInst = (params: object) => {
  return bsinRequest(workflowAdminPath + '/historyProcessInst/getHistoryActInst', {
    serviceName: 'BsinAdminHistoryProcessInstService',
    methodName: 'getHistoryActInst',
    bizParams: {
      ...params,
    },
  });
};

// 获取历史流程实例列表
export const getHistoryTaskInst = (params: object) => {
  return bsinRequest(workflowAdminPath + '/historyProcessInst/getHistoryTaskInst', {
    serviceName: 'BsinAdminHistoryProcessInstService',
    methodName: 'getHistoryTaskInst',
    bizParams: {
      ...params,
    },
  });
};
